package com.hl.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hl.mapper.FMMapper;
import com.hl.pojo.Consultanttraining;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FMServiceImpl implements FMService{
    @Autowired
    private FMMapper fmMapper;
    @Override
    public PageInfo<Consultanttraining> getFMMessage(Integer page, Integer pageSize) {
        PageHelper.startPage(page,pageSize);
        List<Consultanttraining> list = fmMapper.getFMMessage();
        PageInfo<Consultanttraining> pageInfo = new PageInfo<>(list);
        return pageInfo;
    }
}
